// JavaScript Document
var pee = -55;
var drec = 10;
var speed = 20;
//Don't touch!
var l = pee;
//Don't touch. This is the function that closes the menu
function Proj7GlideBack () {l += drec;
  if (document.layers) {
    document.menuBar.top = l;
  }
  else if (document.all) {document.all.menuBar.style.pixelTop = l-5;
  }
  else if (document.getElementById) {document.getElementById('menuBar').style.top = l-5 + 'px';
  }
  if (l < 0)
    setTimeout('Proj7GlideBack()', speed);
  
else {
	  if (document.layers) {
      var a = window.document.menuBar.document.glider;
      a.document.open();
      a.document.close();
    }
    else if (document.all) {
      document.all.glidetextLink.onclick = moveIn;
    }
    else if (document.getElementById) {
      document.getElementById('glidetextLink').onclick = moveIn;
    }
  }
}
//Don't touch. This is the function that opens the menu
function Proj7GlideOut () {l -= drec;
  if (document.layers) {document.menuBar.top = l;
  }
  else if (document.all) {document.all.menuBar.style.pixelTop = l;
  }
  else if (document.getElementById) {document.getElementById('menuBar').style.top = l + 'px';
  }
  if (l > pee)
    setTimeout('Proj7GlideOut()', speed);
  else {
    if (document.layers) {
      var a = window.document.menuBar.document.glider;
      a.document.open();
      a.document.close();
    }
    else if (document.all) {
      document.all.glidetextLink.onclick = moveOut;
    }
    else if (document.getElementById) {
      document.getElementById('glidetextLink').onclick = moveOut;
    }
  }
}
function moveIn () {Proj7GlideOut();return false;
}
function moveOut() {Proj7GlideBack();return false;
}

if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (document.layers) onresize = redo;
